<%@page import="ch.ethz.inf.shop.UserServlet"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Online SuperMarket</title>
</head>

<body>

	<!-- Header -->

	<table id="masterTable" cellpadding="0" cellspacing="0">
		<tr>
			<th id="masterHeader" colspan="2">
				<h1>e-Supermarket</h1> Project by Patric and Philipp
			</th>
		</tr>
		<tr id="masterContent">

			<td id="masterContentMenu">

				<div class="menuDiv1"></div>
				<div class="menuDiv1">
					<a href="HomePage">Home</a>
				</div>
				<div class="menuDiv1">
					<a href="Products">Products</a>
				</div>
				<div class="menuDiv2">
					<a href="Products">Search</a>
				</div> <!-- <div class="menuDiv2"><a href="Products?filter=offers">Offers</a></div>-->
				<div class="menuDiv2">
					<a href="Products?filter=popular">Most Popular</a>
				</div>
				<div class="menuDiv1">
					<a href="Recipes">Recipes</a>
				</div>
				<div class="menuDiv1">
					<a href="User">User Profile</a>
				</div>
				<%
				if (session.getAttribute(UserServlet.SESSION_USER_LOGGED_IN) != null && (Boolean) session.getAttribute(UserServlet.SESSION_USER_LOGGED_IN)){
 				// User is logged in. Display the details:
 				%>

				<div class="menuDiv2">
					<a href="ShoppingCart">Shopping Cart</a>
				</div> 
				<%
				}
				%>

			</td>

			<td id="masterContentPlaceholder">